package com.ivt.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Lob;
import javax.persistence.MappedSuperclass;

import com.ivt.utils.enums.AuditStatus;
import com.ivt.utils.enums.Sex;

/**
 * The persistent class for the sklay_user database table.
 * 
 */
@MappedSuperclass
public class Persion implements Serializable {
	private static final long serialVersionUID = 1L;

	@Column(length = 50)
	private String phone;

	@Column(name = "name", length = 20)
	private String name;

	@Column(name = "account", length = 20)
	private String account;

	@Column(length = 64)
	private String password;

	@Column(length = 30)
	private String salt;

	@Column(name = "status")
	private AuditStatus status;

	private Sex sex;

	@Lob
	private String roles;

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public AuditStatus getStatus() {
		return status;
	}

	public void setStatus(AuditStatus status) {
		this.status = status;
	}

	public String getRoles() {
		return roles;
	}

	public void setRoles(String roles) {
		this.roles = roles;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public Sex getSex() {
		return sex;
	}

	public void setSex(Sex sex) {
		this.sex = sex;
	}

}